/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:SqlStatement.java   2020-07-18 17:30 wanglijun
 */
package cn.datacare.orm.annotation;

import static cn.datacare.orm.util.StringUtils.EMPTY;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-07-18 17:30
 */
public @interface SqlStatement {
    /**
     * @return 参数名列表
     */

    String params() default EMPTY;

    /**
     * @return statement类型.
     */
    SqlStatementType type() default SqlStatementType.AUTO;

    /**
     * @return 返回类型，默认是Mapper类的泛型，需要特别声明才用这个
     */
    @Deprecated Class returnType() default Void.class;
}
